<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="EPI Quant">
    <title>EPI Quant</title>
    <link href="http://g.alicdn.com/sj/dpl/1.5.1/css/sui.min.css" rel="stylesheet">
    <link href="http://g.alicdn.com/sj/dpl/1.5.1/css/sui-append.min.css" rel="stylesheet">
    <script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript" src="http://g.alicdn.com/sj/dpl/1.5.1/js/sui.min.js"></script>
    <script>
        function logout() {
                window.localStorage.clear()
                window.location.href = '/api/user/logout'
            }
        $(function(){
            if (window.localStorage.UserName) {
                $('#lblLogin').hide()
                $('#lblUser').show()
                $('#lblInfo').html('您好，' + window.localStorage.UserName + '!')
            } else {
                $('#lblLogin').show()
                $('#lblUser').hide()
            }
            
        })
    </script>
</head>
<body>
    <div class="sui-container">
    <div class="sui-navbar">
        <div class="navbar-inner"><a href="#" class="sui-brand">EPI Open Quant</a>
            <ul class="sui-nav">
                <li class="active"><a href="#">首页</a></li>
                <li><a href="/strategy">策略中心</a></li>
                <li><a href="#">报表中心</a></li>
                
            </ul>
            <form class="sui-form sui-form pull-left">
                <input type="text" placeholder="关键字...">
                <button class="sui-btn">搜索</button>
            </form>
            <ul class="sui-nav pull-right">
                <li id="lblLogin"><a href="/login">登录</a></li>
                <li id="lblUser" class="sui-dropdown"><a href="javascript:void(0);" data-toggle="dropdown" class="dropdown-toggle"><span id="lblInfo">-</span> <i class="caret"></i></a>
                <ul role="menu" class="sui-dropdown-menu">
                    <li role="presentation"><a role="menuitem" tabindex="-1" href="/user">个人中心</a></li>
                    <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:logout();">退出</a></li>
                </ul>
                </li>
                <li><a target="_blank" href="https://www.jianshu.com/u/f8ec8b5633fe">系列文章</a></li>
            </ul>
        </div>
    </div>
       